package com.googlecode.xcarve.transport;

import io.netty.channel.Channel;

import java.net.InetSocketAddress;

public interface Client {

//	public Bootstrap createBootStrap();

	public Channel getConnection();
	
	public boolean isConnection();
	
	public void reconnection();
	
	public void send(final Object msg) throws Exception;
	
	/**
	 * 
	 * @param msg
	 * @param timeout milis
	 */
	public void send(final Object msg,final long timeout)throws Exception;
	
	public InetSocketAddress getRemoteAddress();

	public void close();
	
	public boolean isClosed();
}
